<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Clause: chatopera::bot::intent::Trainer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Clause
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Chatopera Language Understanding Service.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="inherits.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacechatopera.html">chatopera</a></li><li class="navelem"><b>bot</b></li><li class="navelem"><b>intent</b></li><li class="navelem"><a class="el" href="classchatopera_1_1bot_1_1intent_1_1Trainer.html">Trainer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classchatopera_1_1bot_1_1intent_1_1Trainer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">chatopera::bot::intent::Trainer类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a3c0a4ff5cb678f398501af98e92ee50e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1intent_1_1Trainer.html#a3c0a4ff5cb678f398501af98e92ee50e">Trainer</a> ()</td></tr>
<tr class="separator:a3c0a4ff5cb678f398501af98e92ee50e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa449df2135821d8363c591b86a660d45"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa449df2135821d8363c591b86a660d45"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> ()</td></tr>
<tr class="separator:aa449df2135821d8363c591b86a660d45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a716714ea065d83a00231a188ef9d0a6c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classchatopera_1_1bot_1_1intent_1_1Trainer.html#a716714ea065d83a00231a188ef9d0a6c">train</a> (const string payload)</td></tr>
<tr class="separator:a716714ea065d83a00231a188ef9d0a6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a3c0a4ff5cb678f398501af98e92ee50e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">chatopera::bot::intent::Trainer::Trainer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>初始化系统词典信息</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a716714ea065d83a00231a188ef9d0a6c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void chatopera::bot::intent::Trainer::train </td>
          <td>(</td>
          <td class="paramtype">const string&#160;</td>
          <td class="paramname"><em>payload</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>训练对话模型 </p>
<p>new version file(s) info</p>
<p>分类</p>
<p>dump dictwords to HAT-Trie data dump dictwords to LevelDB trie: 用于前缀查找 leveldb: 用于验证一个词是否属于某词典</p>
<p>dump augmented data into JSON File for debugging purpose</p>

<p><div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="classchatopera_1_1bot_1_1intent_1_1Trainer_a716714ea065d83a00231a188ef9d0a6c_cgraph.png" border="0" usemap="#classchatopera_1_1bot_1_1intent_1_1Trainer_a716714ea065d83a00231a188ef9d0a6c_cgraph" alt=""/></div>
<map name="classchatopera_1_1bot_1_1intent_1_1Trainer_a716714ea065d83a00231a188ef9d0a6c_cgraph" id="classchatopera_1_1bot_1_1intent_1_1Trainer_a716714ea065d83a00231a188ef9d0a6c_cgraph">
<area shape="rect" id="node2" href="classchatopera_1_1bot_1_1crfsuite_1_1Trainer.html#a56b387aafec11fd9239391784136abda" title="chatopera::bot::crfsuite\l::Trainer::select" alt="" coords="215,5,385,47"/>
<area shape="rect" id="node3" href="classchatopera_1_1bot_1_1crfsuite_1_1Trainer.html#a11e2975f51e34d4d0058a84a40459978" title="chatopera::bot::crfsuite\l::Trainer::init" alt="" coords="215,71,385,112"/>
<area shape="rect" id="node4" href="classchatopera_1_1bot_1_1crfsuite_1_1Trainer.html#ac4e2cdffbfb268c2a320c0099f91494a" title="chatopera::bot::crfsuite\l::Trainer::set" alt="" coords="215,136,385,177"/>
<area shape="rect" id="node5" href="classchatopera_1_1bot_1_1crfsuite_1_1Trainer.html#a8b95b93e0f76623f8d3c8cd9ab414871" title="chatopera::bot::crfsuite\l::Trainer::read_data" alt="" coords="215,201,385,243"/>
<area shape="rect" id="node6" href="classchatopera_1_1bot_1_1crfsuite_1_1Trainer.html#aeaacda20768776e7f99f8a672b6123b3" title="chatopera::bot::crfsuite\l::Trainer::train" alt="" coords="215,267,385,308"/>
</map>
</div>
</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/intent/src/<a class="el" href="trainer_8h_source.html">trainer.h</a></li>
<li>src/intent/src/trainer.cpp</li>
</ul>
</div><!-- contents -->
<address class="footer">
    <small>
        &nbsp; Copyright (c) (2019-2020) &nbsp;<a href="https://www.chatopera.com">
            北京华夏春松科技有限公司
        </a>. All Rights Reserved
        &nbsp;
    </small>
</address>